package com.wwwarehouse.resource_center.fragment.productiontools;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.resource_center.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Creator by zhenwang.xiang on 2017/11/21 10:29
 * Description: 生成条码
 */


public class GenerateBarcodeFragment extends BaseFragment implements View.OnClickListener {

    private List<String> mData;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_generate_barcode, container, false);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initView();
        initData();
    }

    private void initData() {
        mData = new ArrayList<>();
        for (int j = 0; j < 20; j++) {
            mData.add("我在测试" + j);
        }
    }

    private void initView() {
        $(R.id.btn_print).setOnClickListener(this);
    }

    @Override
    public void setTitle() {

    }

    @Override
    public void requestDatas() {

    }

    @Override
    public void onClick(View v) {
        int i = v.getId();
        if (i == R.id.btn_print) {
        } else {
        }
    }
}
